using MongoDB.Bson.Serialization;

namespace Sustainalytics.Synchronization.Validation.Internals
{
    public class FullNameDiscriminatorClassMap<T> : MongoDbClassMap<T>
    {
        public override void Map(BsonClassMap<T> cm)
        {
            cm.AutoMap();
            cm.SetDiscriminator(typeof(T).FullName);
        }
    }
}